package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class EventDetails implements Serializable {
    private String edno;

    private String actno;

    private String actname;

    private Date activityStartTime;

    private Date activityEndTime;

    private Date eventDate;

    private static final long serialVersionUID = 1L;

    public String getEdno() {
        return edno;
    }

    public void setEdno(String edno) {
        this.edno = edno;
    }

    public String getActno() {
        return actno;
    }

    public void setActno(String actno) {
        this.actno = actno;
    }

    public String getActname() {
        return actname;
    }

    public void setActname(String actname) {
        this.actname = actname;
    }

    public Date getActivityStartTime() {
        return activityStartTime;
    }

    public void setActivityStartTime(Date activityStartTime) {
        this.activityStartTime = activityStartTime;
    }

    public Date getActivityEndTime() {
        return activityEndTime;
    }

    public void setActivityEndTime(Date activityEndTime) {
        this.activityEndTime = activityEndTime;
    }

    public Date getEventDate() {
        return eventDate;
    }

    public void setEventDate(Date eventDate) {
        this.eventDate = eventDate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EventDetails other = (EventDetails) that;
        return (this.getEdno() == null ? other.getEdno() == null : this.getEdno().equals(other.getEdno()))
            && (this.getActno() == null ? other.getActno() == null : this.getActno().equals(other.getActno()))
            && (this.getActname() == null ? other.getActname() == null : this.getActname().equals(other.getActname()))
            && (this.getActivityStartTime() == null ? other.getActivityStartTime() == null : this.getActivityStartTime().equals(other.getActivityStartTime()))
            && (this.getActivityEndTime() == null ? other.getActivityEndTime() == null : this.getActivityEndTime().equals(other.getActivityEndTime()))
            && (this.getEventDate() == null ? other.getEventDate() == null : this.getEventDate().equals(other.getEventDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getEdno() == null) ? 0 : getEdno().hashCode());
        result = prime * result + ((getActno() == null) ? 0 : getActno().hashCode());
        result = prime * result + ((getActname() == null) ? 0 : getActname().hashCode());
        result = prime * result + ((getActivityStartTime() == null) ? 0 : getActivityStartTime().hashCode());
        result = prime * result + ((getActivityEndTime() == null) ? 0 : getActivityEndTime().hashCode());
        result = prime * result + ((getEventDate() == null) ? 0 : getEventDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", edno=").append(edno);
        sb.append(", actno=").append(actno);
        sb.append(", actname=").append(actname);
        sb.append(", activityStartTime=").append(activityStartTime);
        sb.append(", activityEndTime=").append(activityEndTime);
        sb.append(", eventDate=").append(eventDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}